 %include header libraryName=libraryName
 %barcodeURL = 'http://www.barcodesinc.com/generator/image.php?code=%08d&style=197&type=C128B&width=200&height=50&xres=1&font=3' % int(data.get('id'))
    <script type="text/javascript">
        //<!--
        $(document).ready(function() {
            $('#name').focus();
        })
        //-->
    </script>
    <div>Manage User</div>
    
    <div class="bordered">
        <form method="post" action="/administration/updateUser/{{data.get('id')}}">
            <div>
                <!--<div class="right"><img src="{{barcodeURL}}" alt="resource barcode" /></div>-->
                <label for="name">Name: <input id="name" name="name" type="text" value="{{data.get('name').encode('utf-8')}}"/></label>
                <label for="username">Username: <input name="username" type="text" value="{{data.get('username')}}" /></label>
                <label for="password">Password: <input name="password" type="password" /></label>
            </div>
            <div>
                <label for="street">Street: <input name="street" type="text" value="{{data.get('street').encode('utf-8') if data.get('street') else ''}}" /></label>
                <label for="city">City: <input name="city" type="text" value="{{data.get('city').encode('utf-8') if data.get('city') else ''}}" /></label>
                <label for="state">State: <input name="state" type="text" value="{{data.get('state').encode('utf-8') if data.get('state') else ''}}" /></label>
                <label for="zip">Zip: <input name="zip" type="text" value="{{data.get('zip')}}" /></label>
            </div>
            <div>
                <label for="phone">Phone: <input name="phone" type="text" value="{{data.get('phone')}}" /></label>
                <label for="email">E-mail: <input name="email" type="text" value="{{data.get('email')}}" /></label>
            </div>
            <div>
                <a href="/administration/manageUsers"><button>Cancel</button></a>
                <button type="submit">Save</button
            </div>
        </form>
        <div><a href="/logout">Logout</a></div>
    </div>
%include footer